package com.activenetwork.smlite.testcase.events.createEvents.basics;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;

import com.activenetwork.smlite.page.event.EventDetailView.EventBasicSubview;
import com.activenetwork.smlite.snippet.EventsSnippet;
import com.activenetwork.smlite.testcase.BaseCase;
import com.activenetwork.util.EnvContext;
import com.activenetwork.util.verification.gson.FailurePoint;

public class Basics014 extends BaseCase {
	static final Logger logger = LoggerFactory.getLogger(Basics014.class);
	
	@Test
	public void Verify_add_Tag_from_suggest_list_works_correctly(){
		loginBusiness.login();

		EventBasicSubview eventBasicSubview = EventsSnippet.gotoAddEventPage();
		
		try{
			eventBasicSubview.selectEventTagAJAX("tag", 1);
		}catch(RuntimeException e){
			EnvContext.failurePointTL.get().add(
					new FailurePoint(Basics014.class.getName(), 
					"Verify select tag from suggest list", 
					"Verify select tag from suggest list failed"));
		}
		
		loginBusiness.logout();
	}
}
